<!-- 损失物品-损失证件(龙文友) -->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">
	
	<ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="损失证件" />
	<ui:param name="compToggleable" value="true" />
	<ui:define name="compHiddens">
	 	
	</ui:define>
	
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<!-- 第一行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="casesn" />
				<ui:param name="compBean1Lable" value="案件编号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="casesn" value="#{pageViewBean.fields.casesn}" readonly="true"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="certificatename" />
				<ui:param name="compBean1Lable" value="姓名" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="certificatename" value="#{pageViewBean.fields.certificatename}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="certificatetype" />
				<ui:param name="compBean1Lable" value="证件类型" />
				
				<ui:define name="compBean1Content">
					<sinox:codeSetInputTree id="certificatetype" codeSetId="id_c_zjlx" value="#{pageViewBean.fields.certificatetype}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			
			
			<!-- 第四行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="certificateid" />
				<ui:param name="compBean1Lable" value="号码" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="certificateid" value="#{pageViewBean.fields.certificateid}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="signtimestamp" />
				<ui:param name="compBean1Lable" value="制发日期" />
				
				<ui:define name="compBean1Content">
					 <p:calendar id="signtimestamp" value="#{pageViewBean.fields.signtimestamp}" pattern="yyyy-MM-dd" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第六行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="issueunit" />
				<ui:param name="compBean1Lable" value="制发单位" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="issueunit" value="#{pageViewBean.fields.issueunit}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第七行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="validitybegin" />
				<ui:param name="compBean1Lable" value="有效期" />			
				<ui:define name="compBean1Content">
					<p:calendar id="validitybegin" pattern="yyyy-MM-dd" value="#{pageViewBean.fields.validitybegin}" />
				</ui:define>
				<ui:param name="compBean2Id" value="validityend" />
				<ui:param name="compBean2Lable" value="至"/>
				<ui:define name="compBean2Content">
				     <p:calendar id="validityend" value="#{pageViewBean.fields.validityend}" pattern="yyyy-MM-dd" />
				</ui:define>
			</ui:decorate>
			<!-- 第八行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
			 <ui:param name="compType" value="single" />
			 <ui:param name="compBean1Id" value="yesorno" />
			 <ui:param name="compBean1Lable" value="真伪" />
			    <ui:define name="compBean1Content">
			        <h:selectOneRadio value="#{pageViewBean.fields.ifture}">
						<f:selectItem itemLabel="真" itemValue="1" />
						<f:selectItem itemLabel="伪" itemValue="0" />
					</h:selectOneRadio>
				</ui:define>
			</ui:decorate>	
			<!-- 第九行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="annex" />
				<ui:param name="compBean1Lable" value="备注" />
				
				<ui:define name="compBean1Content">
				<h:inputTextarea
					 style="width:700px;height:100px;overflow:auto;"
					 id="annex" effectDuration="400" 
					 value="#{pageViewBean.fields.annex}" />
				</ui:define>
			</ui:decorate>
		</ui:decorate>
		
	</ui:define>
	<ui:define name="compButtons">
		<p:commandButton
			title="保存"
			actionListener="#{caseGoodsManager.save}"
			onclick="#{compId}_dialog.hide();"
			onstart="this.disabled=true"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden id="#{compId}" value="sszj" />
		</p:commandButton>		
		<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
	</ui:define>
</ui:composition>
